-- GENERATED SPELL FOR [Living Storm] --


function spell0_9397(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9397', 0, 1)
end

function Sorts_9397(pUnit, Event)
local choix_sorts_9397 = math.random(0, 0)
if choix_sorts_9397 == 0 then
pUnit:RegisterEvent('spell0_9397', 1, 1)
end
end

function mob9397_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9397', math.random(1500, 3000), 1)
end

function mob9397_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9397_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9397_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9397, 1, 'mob9397_Action')
RegisterUnitEvent(9397, 2, 'mob9397_Leave')
RegisterUnitEvent(9397, 3, 'mob9397_Kill')
RegisterUnitEvent(9397, 4, 'mob9397_Die')
